package pro.vet.actions;

import java.util.ArrayList;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;

import pro.vet.beans.cita;
import pro.vet.services.cita_implements;

import com.opensymphony.xwork2.ActionSupport;

@ParentPackage(value="Veterinaria_LT")
public class cita_Action extends ActionSupport{
	private static final long serialVersionUID = 1L;
	
	private ArrayList<cita> citas;
	private cita_implements citai = new cita_implements();
	
	@Action( value="AlistaCita",results={@Result(name="success",type="json")})
	public String lista_cita() throws Exception{	
		citas = citai.lista_cita();
		return SUCCESS;			
	}
	
	

	public ArrayList<cita> getCitas() {
		return citas;
	}

	public void setCitas(ArrayList<cita> citas) {
		this.citas = citas;
	}
	
}
